<template>
	<view class="content">
		<view class="nav-part-bg"></view>
		<view class="body">
			<view class="nav-day">
				<selectDay :outDate="selDay" @selectDay="updateDay"></selectDay>
			</view>
			<view class="footer" v-for="(mitem, mindex) in task" :key="mindex">
				<view class="step-spot">
					<view class="row-tip">
						<view class="cell">
							<view class="cell-row-left">
								<text class="cell-title">编号：</text>
								<text class="cell-content">12</text>
							</view>
							<view class="cell-row-right">
								<text class="cell-title">车牌：</text>
								<text class="cell-content">粤B12345</text>
							</view>
						</view>
						<view class="cell">
							<text class="cell-title">司机：</text>
							<text class="cell-content">张三</text>
							<text class="cell-content">13656894512</text>
						</view>
						<view class="cell">
							<text class="cell-title">创建时间：</text>
							<text class="cell-content">2023-3-18 12:22:21</text>
						</view>
						<view class="cell">
							<text class="cell-title">是否出车：</text>
							<text class="cell-content">已出车</text>
						</view>
						<view class="cell">
							<text class="cell-title">原因：</text>
							<text class="cell-content">车辆故障</text>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="bottom">
			<button class="btn-commit" type="primary" @click="addRepair">新增报修单</button>
		</view>
	</view>
</template>

<script>
import selectDay from '@/components/selectDay.vue';
export default {
	components: { selectDay },
	data() {
		return {
			task: ['', ''],
			selDay: new Date(),
			lineRoute: ['报国寺车站', '雷洞坪车站', '零公里', '万年寺车站', '五显岗车站', '黄湾车站', '报国寺车站']
		};
	},
	onLoad() {
		// #ifdef MP
		//未登录转登录页面，已登录转主页面
		if (!this.$store.dispatch('checkIndentity')) return;
		// #endif
	},
	methods: {
		addRepair() {
			uni.navigateTo({
				url: '/pages/wrong/wrong'
			});
		}
	}
};
</script>

<style lang="scss" scoped>
.content {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: white;
	overflow: scroll;
	padding-top: 100rpx;
	position: relative;
	.nav-part-bg {
		width: 100%;
		height: 320rpx;
		background-color: #1a90e4;
		position: fixed;
		top: 0;
		z-index: 0;
	}
	.body {
		width: 100%;
		height: 100%;
		position: relative;
		.nav-day {
			width: 100%;
			height: 100rpx;
			color: white;
			background-color: #1a90e4;
			position: fixed;
			top: var(--window-top, 0);
			z-index: 99;
		}
		.header {
			border: solid 1rpx #1a90e4;
			width: 100%;
			height: auto;
			position: fixed;
			top: var(--window-top, 0);
			z-index: 99;
			box-shadow: 0px 1px 5px #d9d9d9;
			background-color: white;
			.row {
				margin: 20rpx;
				align-items: center;
				border: solid 1rpx #3c9cff;
				border-radius: 10rpx;
				background-color: #f1f2f4;
				.line {
					width: 100%;
					position: relative;
				}
			}
		}
		.footer {
			margin: 20rpx 20rpx;
			border-radius: 10rpx;
			background-color: white;
			box-shadow: 0px 1px 5px #888888;
			.step-spot {
				display: flex;
				flex-direction: column;
				.row-tip {
					margin: 10rpx 20rpx;
					display: flex;
					flex-direction: column;
					.tip-m {
						color: #3c9cff;
					}
					.cell {
						padding: 10rpx 0;
						display: flex;
						.cell-title {
							letter-spacing: 10rpx;
							font-size: 28rpx;
						}
						.cell-content {
							letter-spacing: 10rpx;
							font-size: 28rpx;
							color: #1a90e4;
							margin: 0 20rpx;
						}
						.cell-content2 {
							font-size: 28rpx;
							color: #1a90e4;
							margin: 0 20rpx;
						}
						.cell-row-left {
							width: 40%;
						}
						.cell-row-right {
							flex: 1;
						}
						.cell-row {
							width: 50%;
						}
					}
				}
			}
		}
	}
	.bottom {
		width: 100%;
		position: fixed;
		bottom: 0;
		.btn-commit {
			width: 98%;
			background-color: #1a90e4;
		}
	}
}
::v-deep .u-steps.u-steps--column {
	width: 100%;
}
</style>
s
